package com.zhouchao.user.service;

import com.zhouchao.user.common.Result;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author: zhouchao
 * @Date: 2021/10/16 18:17
 * @Description:
 */
public interface IUserService {

    Result<Integer> register(String email, String password, String code);

    Result<Boolean> isRegistered(String email);

    Result<String> login(String email, String password, HttpServletRequest request, HttpServletResponse response);

    Result<String> getInfo(String token);
}
